package Version3;

public class Stage{
	
	public int computeMHDamage(MonsterHunter mh,Monster m)
	{
			int result;
			result=mh.getAttack();
			String s1=mh.getJob();
			String s2=m.getJob();
	if(s1=="Melee" && s2=="Ranger" || s1=="Ranger"&& s2=="Mage" || s1=="Mage"&& s2=="Melee")
	return (int)(1.5*result);
	else if(s2=="Melee" && s1=="Ranger" || s2=="Ranger"&& s1=="Mage" || s2=="Mage"&& s1=="Melee")
	return (int)(0.5*result);
	else
	return (int)(1*result);
	}

	public int computeMonsterDamage(Monster m,MonsterHunter mh)
	{
			double result;
			result=m.getAttack();
	String s1=m.getJob(); String s2=mh.getJob();
	if(s1=="Melee" && s2=="Ranger" || s1=="Ranger"&& s2=="Mage" || s1=="Mage"&& s2=="Melee")
	return (int)(1.5*result);
	else if(s2=="Melee" && s1=="Ranger" || s2=="Ranger"&& s1=="Mage" || s2=="Mage"&& s1=="Melee")
	return (int)(0.5*result);
	else
	return (int)(1*result);
	}
}

